package com.jinfang.bankpractice.model;
import java.util.Date;
import java.math.BigDecimal;
import org.springframework.format.annotation.DateTimeFormat;
import com.fasterxml.jackson.annotation.JsonFormat;
/**
* 题目记录
*/
public class Record implements java.io.Serializable { 
	private Long id;	
	/** userid*/
	private Long  userid;
	/** course*/
	private Integer  course;
	/** 错题*/
	private String  errorids;
	/** 做过的题*/
	private String  doneids;
	/** updatetime*/
	private Date  updatetime;

	/** 默认构造器 */
	public Record(){
		
	}

	public Record(
			Long userid,
			Integer course,
			String errorids,
			String doneids,
			Date updatetime) {
			super();
			this.userid=userid;
			this.course=course;
			this.errorids=errorids;
			this.doneids=doneids;
			this.updatetime=updatetime;
		}	
	
	/** 全构造器 */
	public Record(
		Long id,
		Long userid,
		Integer course,
		String errorids,
		String doneids,
		Date updatetime) {
		super();
		this.id=id;
		this.userid=userid;
		this.course=course;
		this.errorids=errorids;
		this.doneids=doneids;
		this.updatetime=updatetime;
	}	
	
	/** 获得 id */
	public Long  getId() { 
		return id; 
	}
	/** 设置 id */
	public void setId(Long id){
		this.id=id;
	}	
	/** 获得 userid */
	public Long  getUserid() { 
		return userid; 
	}
	/** 设置 userid */
	public void setUserid(Long userid){
		this.userid=userid;
	}	
	/** 获得 course */
	public Integer  getCourse() { 
		return course; 
	}
	/** 设置 course */
	public void setCourse(Integer course){
		this.course=course;
	}	
	/** 获得 错题 */
	public String  getErrorids() { 
		return errorids; 
	}
	/** 设置 错题 */
	public void setErrorids(String errorids){
		this.errorids=errorids;
	}	
	/** 获得 做过的题 */
	public String  getDoneids() { 
		return doneids; 
	}
	/** 设置 做过的题 */
	public void setDoneids(String doneids){
		this.doneids=doneids;
	}	
	/** 获得 updatetime */
	@DateTimeFormat(pattern="yyyy-MM-dd HH:mm:ss")  
	@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")  
	public Date  getUpdatetime() { 
		return updatetime; 
	}
	/** 设置 updatetime */
	public void setUpdatetime(Date updatetime){
		this.updatetime=updatetime;
	}	
	
	@Override
	public String toString() {
		return "题目记录 Record ["
				+" id=" + id	+" userid=" + userid	+" course=" + course	+" errorids=" + errorids	+" doneids=" + doneids
	+" updatetime=" + updatetime
		+ "]\n";
	}	
	
}
	
